<?php
namespace Service;

class Feedback extends Base
{

    private $database = null;

    public function getDatabase()
    {
        if($this->database){
            return $this->database;
        }
        $this->database = $this->get(DATABASE_FEEDBACK);
        return $this->database;
    }

    public function addData($userId, $type, $fileIds, $content)
    {
        return $this->getDatabase()->addData($userId, $type, $fileIds, $content);
    }

}